M = {}

local newCollector = function(imageSheet,sheet,x, y)
    collector = display.newImageRect(imageSheet,sheet ,20,20)
    collector.x = x
    collector.y = y
    physics.addBody( collector, { isSensor = true } )
    collector.tipo= "COLLECTOR"
    return collector
end

M.newCollector = newCollector

return M